<include file="Public:header" />
<div class="container main"> <include file="Public:left" />
  <div class="w790"> 
    <script>
  	function uploaded(path){
		$("#img_url").attr("src",'__PUBLIC__'+path);
		$("input[name='img_url']").val(path);
	}
	
	function del_img(){
		if(confirm('您确定要删除图片吗?')){
			var file=$("input[name='img_url']").val();
			$.post("{:U('delImgBypath')}",{'path':file},function(data){
				$("input[name='img_url']").val('');
				$("#img_url").attr('src','');
			});
		}else{
			return false;
		}
	}
	//删除图组图片
	function mdel_img(path){
		$('#img_list div img').each(function(index, element) {
			$.post("{:U('delImgBypath')}",{'path':path},function(data){
				if(data=='OK'){
					
					$('#img_list div').each(function(index, element) {
                        if($(this).attr('url')==path){
							$(this).remove();
						}
                    });
					
					$('#picmsg input').each(function(index, element) {
                        if($(this).val()==path){
							$(this).remove();
						}
                    });
				}
			});
		});
	}
  </script>
    <h1><a href="{:U('index')}">返回列表</a></h1>
    <form class="checkoutform" action="{:U('update')}" method="post">
    <input type="hidden" name="id" value="{$info.id}" >
    <table class="table table-bordered" border="0" cellpadding="0" cellspacing="0" width="100%">
    	<tr>
        	<td>标题</td>
            <td><input name="title" type="text" value="{$info.title}" size="70" maxlength="70"></td>
            <td rowspan="2">
           
            </td>
        </tr>
        <tr>
        	<td>详细</td>
            <td><html:editor id="editor" name="content" type="UEDIT" style="height:100px; width:500px;">{$info.content}</html:editor></td>
        </tr>
    </table>
      <table class="table table-bordered" border="0" cellpadding="0" cellspacing="0" width="100%">
        <tbody>
        
        <volist name="info['config']" id="vo">
          <tr>
           <input type="hidden" name="mid[]" value="{$vo.id}"><input type="hidden" name="praisefeild[]" value="{$vo.praisefeild}">
            <td><input type="text" name="praisename[]" value="{$vo.praisename}"></td>
            <td><input type="text" name="min[]" value="{$vo.min}"></td>
            <td><input type="text" name="max[]" value="{$vo.max}"></td>
            <td><input type="text" name="praisecontent[]" value="{$vo.praisecontent}"></td>
            <td><input type="text" name="praisenumber[]" value="{$vo.praisenumber}"></td>
            <td><input type="text" name="chance[]" value="{$vo.chance}"></td>
          </tr>
         </volist>
         
         <tr>
            
            <td colspan="6" align="center"><button class="mybutton" type="submit">提交</button></td>
            </tr>
        </tbody>
      </table>
    </form>
  </div>
  <div class="clear"></div>
</div>

</body></html>